package com.gyg.service;

import com.gyg.domain.CloudDocument;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gyg.returns.RespEntity;
import com.gyg.returns.RespTable;
import com.gyg.vo.param.BanParam;
import com.gyg.vo.param.FileParam;
import com.gyg.vo.result.DocumentResult;

import java.util.List;

/**
 * <p>
 * 文档信息表 服务类
 * </p>
 *
 * @author gyg
 * @since 2021-04-14
 */
public interface CloudDocumentService extends IService<CloudDocument> {

    /**
     * 文档列表
     * @param fileParam
     * @return
     */
    RespTable<List<DocumentResult>> documentList(FileParam fileParam);

    /**
     * 封禁文档
     * @param banParam
     * @return
     */
    RespEntity banDocument(BanParam banParam);

    /**
     * 解封文档
     * @param banParam
     * @return
     */
    RespEntity unsealDocument(BanParam banParam);

}
